package com.openlogic.common.core.exception.logic;

/**
* @ClassName: RuleFuncParamUnKnowException
* @Description:规则函数库参数未知类型异常
* @author weiyongpeng
* @date 2024年7月24日 上午10:13:39
 */
public class RuleFuncParamUnKnowException extends RuntimeException{
	
	private static final long serialVersionUID = 1L;

    /** 错误码 */
    private Integer code;

    /** 错误提示 */
    private String message;

    /**
     * 错误明细，内部调试错误
     * <p>
     * 和 {@link CommonResult#getDetailMessage()} 一致的设计
     */
    private String detailMessage;

    /** 空构造方法，避免反序列化问题 */
    public RuleFuncParamUnKnowException() {
    }

    public RuleFuncParamUnKnowException(String message) {
        this.message = message;
    }

    public RuleFuncParamUnKnowException(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    public String getDetailMessage() {
        return detailMessage;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }

    public RuleFuncParamUnKnowException setMessage(String message) {
        this.message = message;
        return this;
    }

    public RuleFuncParamUnKnowException setDetailMessage(String detailMessage) {
        this.detailMessage = detailMessage;
        return this;
    }
}
